/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.server.data.header;

import hope.platform.data.domain.User;

import java.util.List;
import java.util.Optional;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/17 9:49
 */
public interface UserService {
    User addUser(User user);

    User updateUser(User user);

    List<User> getAll();

    Optional<User> getByEmail(String email);

    User getByEmailAndPassword(String email, String password);

}
